package com.youli.gb.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.youli.gb.model.SysUser;

public interface SysUserMapper {

	SysUser getById(int id);

	List<SysUser> getAll();

	int add(SysUser sysUser);

	SysUser getByLoginName(String loginName);

	int deleteById(Integer id);

	int deleteByIds(String[] ids);

	SysUser getByEmail(String email);

	SysUser getByPhone(String phone);

	int edit(SysUser sysUser);

	List<SysUser> getAllByRoleId(Integer roleId);

	SysUser login(@Param("account") String account,@Param("password") String password);

	int modifyPassword(@Param("password") String password,@Param("userId")  int userId);
	
}
